/**
 * LeapYear
 *
 * brief description of the program
 *
 * This program is released to public domain according to
 * author's wish, you can view full license at
 * http://tomatoeskit.org/upload/PublicDomainLicense.txt
 *
 * @author Fangning CHENG (Alpha.L Cheng) <chengf@purdue.edu>
 *
 * @lab section number 
 *
 * @date Sep 3, 2013
 *
 */

public class LeapYear {

    static boolean isLeapYear(int year) {
       
        if (year % 100 == 0) {
            if (year % 400 == 0)
                return true;
            else
                return false;
        } else {
            if (year % 4 == 0)
                return true;
            else
                return false;
        }
    }
}
